//
//  Root_OrdersViewController.m
//  QMCXDriver
//
//  Created by Massimo on 2017/4/12.
//  Copyright © 2017年 Massimo. All rights reserved.
//

#import "Root_OrdersViewController.h"
#import "QHistoryOrderTableViewCell.h"
#import "HistoryOrderDetailViewController.h"
@interface Root_OrdersViewController ()

@end

@implementation Root_OrdersViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.dataArr = @[@"",@"",@""].mutableCopy;
}


//重写父类方法
- (void)loadData{
    
}





- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.dataArr.count;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 142;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    QHistoryOrderTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
    
    
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
}


- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    
    HistoryOrderDetailViewController *vc = segue.sourceViewController;
    QHistoryOrderTableViewCell *cell = sender;
    
    vc.title = cell.typeLabel.text;
    
}


@end
